Optimal. Leaf size=130 \[ \frac {(3 A+19 C) \text {ArcTan}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {2} \sqrt {a+a \sec (c+d x)}}\right )}{16 \sqrt {2} a^{5/2} d}-\frac {(A+C) \sec (c+d x) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}+\frac {(7 A-9 C) \tan (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.17, antiderivative size = 130, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.121, Rules used = {4164, 4085,
3880, 209} \begin {gather*} \frac {(3 A+19 C) \text {ArcTan}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {2} \sqrt {a \sec (c+d x)+a}}\right )}{16 \sqrt {2} a^{5/2} d}+\frac {(7 A-9 C) \tan (c+d x)}{16 a d (a \sec (c+d x)+a)^{3/2}}-\frac {(A+C) \tan (c+d x) \sec (c+d x)}{4 d (a \sec (c+d x)+a)^{5/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 3880
Rule 4085
Rule 4164
Rubi steps
\begin {align*} \int \frac {\sec (c+d x) \left (A+C \sec ^2(c+d x)\right )}{(a+a \sec (c+d x))^{5/2}} \, dx &=-\frac {(A+C) \sec (c+d x) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}+\frac {\int \frac {\sec (c+d x) \left (a (3 A-C)-\frac {1}{2} a (A-7 C) \sec (c+d x)\right )}{(a+a \sec (c+d x))^{3/2}} \, dx}{4 a^2}\\ &=-\frac {(A+C) \sec (c+d x) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}+\frac {(7 A-9 C) \tan (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}+\frac {(3 A+19 C) \int \frac {\sec (c+d x)}{\sqrt {a+a \sec (c+d x)}} \, dx}{32 a^2}\\ &=-\frac {(A+C) \sec (c+d x) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}+\frac {(7 A-9 C) \tan (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}-\frac {(3 A+19 C) \text {Subst}\left (\int \frac {1}{2 a+x^2} \, dx,x,-\frac {a \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{16 a^2 d}\\ &=\frac {(3 A+19 C) \tan ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {2} \sqrt {a+a \sec (c+d x)}}\right )}{16 \sqrt {2} a^{5/2} d}-\frac {(A+C) \sec (c+d x) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}+\frac {(7 A-9 C) \tan (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 2.47, size = 120, normalized size = 0.92 \begin {gather*} \frac {-\frac {(3 A+19 C) \text {ArcTan}\left (\frac {\sqrt {-1+\sec (c+d x)}}{\sqrt {2}}\right ) \sqrt {-1+\sec (c+d x)} \sin (c+d x)}{\sqrt {2}}+(-3 A+13 C+(-7 A+9 C) \cos (c+d x)) \tan ^3\left (\frac {1}{2} (c+d x)\right )}{16 a^2 d (-1+\cos (c+d x)) \sqrt {a (1+\sec (c+d x))}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(601\) vs.
\(2(111)=222\).
time = 13.26, size = 602, normalized size = 4.63
method | result | size |
default | \(-\frac {\sqrt {\frac {a \left (1+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}\, \left (-1+\cos \left (d x +c \right )\right ) \left (3 A \sin \left (d x +c \right ) \left (\cos ^{2}\left (d x +c \right )\right ) \ln \left (\frac {\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )-\cos \left (d x +c \right )+1}{\sin \left (d x +c \right )}\right ) \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}+19 C \sin \left (d x +c \right ) \left (\cos ^{2}\left (d x +c \right )\right ) \ln \left (\frac {\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )-\cos \left (d x +c \right )+1}{\sin \left (d x +c \right )}\right ) \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}+6 A \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \ln \left (\frac {\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )-\cos \left (d x +c \right )+1}{\sin \left (d x +c \right )}\right ) \sin \left (d x +c \right ) \cos \left (d x +c \right )+38 C \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \ln \left (\frac {\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )-\cos \left (d x +c \right )+1}{\sin \left (d x +c \right )}\right ) \sin \left (d x +c \right ) \cos \left (d x +c \right )+3 A \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \ln \left (\frac {\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )-\cos \left (d x +c \right )+1}{\sin \left (d x +c \right )}\right ) \sin \left (d x +c \right )-14 A \left (\cos ^{3}\left (d x +c \right )\right )+19 C \sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \ln \left (\frac {\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )-\cos \left (d x +c \right )+1}{\sin \left (d x +c \right )}\right ) \sin \left (d x +c \right )+18 C \left (\cos ^{3}\left (d x +c \right )\right )+8 A \left (\cos ^{2}\left (d x +c \right )\right )+8 C \left (\cos ^{2}\left (d x +c \right )\right )+6 A \cos \left (d x +c \right )-26 C \cos \left (d x +c \right )\right )}{32 d \left (1+\cos \left (d x +c \right )\right ) \sin \left (d x +c \right )^{3} a^{3}}\) | \(602\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.21, size = 479, normalized size = 3.68 \begin {gather*} \left [-\frac {\sqrt {2} {\left ({\left (3 \, A + 19 \, C\right )} \cos \left (d x + c\right )^{3} + 3 \, {\left (3 \, A + 19 \, C\right )} \cos \left (d x + c\right )^{2} + 3 \, {\left (3 \, A + 19 \, C\right )} \cos \left (d x + c\right ) + 3 \, A + 19 \, C\right )} \sqrt {-a} \log \left (\frac {2 \, \sqrt {2} \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right ) \sin \left (d x + c\right ) + 3 \, a \cos \left (d x + c\right )^{2} + 2 \, a \cos \left (d x + c\right ) - a}{\cos \left (d x + c\right )^{2} + 2 \, \cos \left (d x + c\right ) + 1}\right ) - 4 \, {\left ({\left (7 \, A - 9 \, C\right )} \cos \left (d x + c\right )^{2} + {\left (3 \, A - 13 \, C\right )} \cos \left (d x + c\right )\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{64 \, {\left (a^{3} d \cos \left (d x + c\right )^{3} + 3 \, a^{3} d \cos \left (d x + c\right )^{2} + 3 \, a^{3} d \cos \left (d x + c\right ) + a^{3} d\right )}}, -\frac {\sqrt {2} {\left ({\left (3 \, A + 19 \, C\right )} \cos \left (d x + c\right )^{3} + 3 \, {\left (3 \, A + 19 \, C\right )} \cos \left (d x + c\right )^{2} + 3 \, {\left (3 \, A + 19 \, C\right )} \cos \left (d x + c\right ) + 3 \, A + 19 \, C\right )} \sqrt {a} \arctan \left (\frac {\sqrt {2} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right )}{\sqrt {a} \sin \left (d x + c\right )}\right ) - 2 \, {\left ({\left (7 \, A - 9 \, C\right )} \cos \left (d x + c\right )^{2} + {\left (3 \, A - 13 \, C\right )} \cos \left (d x + c\right )\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{32 \, {\left (a^{3} d \cos \left (d x + c\right )^{3} + 3 \, a^{3} d \cos \left (d x + c\right )^{2} + 3 \, a^{3} d \cos \left (d x + c\right ) + a^{3} d\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (A + C \sec ^{2}{\left (c + d x \right )}\right ) \sec {\left (c + d x \right )}}{\left (a \left (\sec {\left (c + d x \right )} + 1\right )\right )^{\frac {5}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.63, size = 169, normalized size = 1.30 \begin {gather*} -\frac {\sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a} {\left (\frac {2 \, \sqrt {2} {\left (A a^{5} + C a^{5}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2}}{a^{8} \mathrm {sgn}\left (\cos \left (d x + c\right )\right )} - \frac {\sqrt {2} {\left (5 \, A a^{5} - 11 \, C a^{5}\right )}}{a^{8} \mathrm {sgn}\left (\cos \left (d x + c\right )\right )}\right )} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + \frac {\sqrt {2} {\left (3 \, A + 19 \, C\right )} \log \left ({\left | -\sqrt {-a} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + \sqrt {-a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + a} \right |}\right )}{\sqrt {-a} a^{2} \mathrm {sgn}\left (\cos \left (d x + c\right )\right )}}{32 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {A+\frac {C}{{\cos \left (c+d\,x\right )}^2}}{\cos \left (c+d\,x\right )\,{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^{5/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________